
import { useHistory } from "react-router";
import Sty from "../../style/publish/index.module.css"

export default () => {
  let history = useHistory()
  
    return (
      <>
      <div className={Sty.publish_box}>
        <div onClick={()=>history.push("/idle")}>
          <div  className={Sty.publish_box_item}>
            <img src={require("../../images/publish_ht.png").default} alt="" />
          </div>
          <p>发布闲置</p>
        </div>
        <div onClick={()=>history.push({pathname:"/publishsubmit"})}>
          <div className={Sty.publish_box_item}>
          <img src={require("../../images/publish_xz.png").default} alt="" />
          </div>
        
          <p>发布话题</p>

        </div>
        </div>          

        <div className={Sty.publish_reduce}></div>
        </>
    );
  }
